package com.skycity.framework.uaa.api;

import cn.skycity.framework.core.model.Result;
import com.skycity.framework.uaa.pojo.entity.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "skycity-common", contextId = "oauth-client",path = "/user")
public interface UserFeignClient {

    @GetMapping("/username/{username}")
    Result<SysUser> getUserByUsername(@PathVariable String username);

}
